package com.marvels.common.constants;

import com.marvels.common.utils.ServerProperties;
import com.fintech.common.util.tls_sigcheck;

/**
 * 腾讯云常量
 * @author one
 *
 */
public class TencentCloud {
	//腾讯云短信
//	public static final String SEND_URL=null;
	/**短信的appid**/
//	public static final String SMS_SDK_APPID=null;
//	public static final String TENTCENT_SMS_APPKEY=null;
	private TencentCloud(){
		//do nothing
	}
	//腾讯云活动直播
	public static final String SDKAPPID = "1400021180";
	public static final String ACCOUNTTYPE = "9320";
//	public static final String PRIVATEKEYPATH = null;
//	public static final String PUBLICKEYPATH = "";
//	
//	public static final String dynamicWarehouse=null;
	
	//public static final String privateKeyPath = "/var/res/tls_sig_api-linux-64/key/private_key";
	//public static final String publicKeyPath = "/var/res/tls_sig_api-linux-64/key/public_key";
	//public static final String dynamicWarehouse="/var/res/tls_sig_api-linux-64/lib/jni/jnisigcheck.so";
	public static final String ADMIN = "admin";
	/** 独立模式账号单个导入接口URL **/
	public static final String ACCOUNT_IMPORT_URL = "https://console.tim.qq.com/v4/im_open_login_svc/account_import";
	/** 独立模式帐号批量导入接口URL **/
	public static final String MULTIACCOUNT_IMPORT_URL = "https://console.tim.qq.com/v4/im_open_login_svc/multiaccount_import";
	/** 创建群组 *私有群�?�公�?群�?�聊天室和互动直播聊天室全部支持使用本REST AP创建新的群组 **/
	public static final String CREATE_GROUP_URL = "https://console.tim.qq.com/v4/group_open_http_svc/create_group";
	/** 解散群组 **/
	public static final String DESTROY_GROUP_URL = "https://console.tim.qq.com/v4/group_open_http_svc/destroy_group";
	/** 获取群组详细信息 **/
	public static final String GET_GROUP_INFO_URL="https://console.tim.qq.com/v4/group_open_http_svc/get_group_info";
	
	public static final tls_sigcheck sigcheck = new tls_sigcheck();
	
	public static String getSendUrl(String filePath){
		return ServerProperties.getValue(filePath, "resource.properties", "send_url");
	}
	public static String getSmsSdkAppid(String filePath){
		return ServerProperties.getValue(filePath, "resource.properties", "sdk_appid");
	}
	public static String getTentcentSmsAppkey(String filePath){
		return ServerProperties.getValue(filePath, "resource.properties", "tentcent_sms_appkey");
	}
	public static String getPrivatekeyPath(String filePath){
		return ServerProperties.getValue(filePath, "resource.properties", "privateKeyPath");
	}
	public static String getPublickeyPath(String filePath){
		return ServerProperties.getValue(filePath, "resource.properties", "publicKeyPath");
	}
	public static String getDynamicWarehouse(String filePath){
		return ServerProperties.getValue(filePath, "resource.properties", "dynamicWarehouse");
	}
}
